Crate libyml

source ·
Expand description

§LibYML

LibYML is a Rust library for parsing and emitting YAML data in a safe and efficient manner. The library is designed to be easy to use and provides a comprehensive set of tools for working with YAML data.

LibYML Logo

§Seamless YAML Serialization for Rust.

Made With RustRust Crates.io Lib.rs Github License

§Features

  • Serialization and Deserialization: LibYML provides easy-to-use APIs for serializing Rust structs and enums into YAML format and deserializing YAML data into Rust types.
  • Custom Struct and Enum Support: The library allows you to work with custom structs and enums, enabling seamless serialization and deserialization of your own data types.
  • Error Handling: LibYML provides comprehensive error handling mechanisms, including detailed error messages and the ability to handle and recover from parsing and emission errors.
  • Streaming Support: The library supports streaming of YAML data, allowing you to efficiently process large YAML documents incrementally.
  • Alias and Anchor Support: LibYML handles YAML aliases and anchors, enabling you to work with complex YAML structures that involve references and duplicated data.
  • Tag Handling: The library provides support for custom tags, allowing you to serialize and deserialize YAML data with specific type information.
  • Configurable Emitter: LibYML allows you to customize the emitter settings, such as indentation, line width, and scalar style, to generate YAML output according to your preferences.
  • Extensive Documentation: The library comes with detailed documentation and examples, making it easy to get started and understand how to use its various features effectively.
  • Safety and Efficiency: LibYML is designed with safety and efficiency in mind. It minimizes the use of unsafe code and provides an interface that helps prevent common pitfalls and errors.

§Rust Version Compatibility

This library is compatible with Rust 1.60 and above.

Re-exports§

Modules§

Functions§